define(function(require, exports){

require('jquery');
require('utility');
require('handlebars');

var fn = require('/js/fn.js');

var F = {
	getCV : function(){
		$.ajax({
			url : '/api/cvinfo',
			type : 'get',
			dataType : 'json',
			success : function(data){
				F.initView(data);
			}
		});
	},

	initView : function(data){
		var tpl = $('#js_cv_tpl').html();
		tpl = KG.Handlebars.compile(tpl)({
			cv : data,
			skillTitle : 'My Skill',
			jobProcessTitle : 'My Job'
		});

		$('#js_main').html(tpl);
	}
};


exports.init = function(){
	fn.initFirstNav('cv');

	F.getCV();
};

});